package org.game.log;

import org.game.log.builder.LogDsp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sojoys.artifact.tools.SK_Plus;

/**
 * @author : DengYing
 * @CreateDate : 2017年12月18日 上午10:24:58
 * @Description ：Please describe this document
 */
public class LogHero implements IGameLogger {
	private LogHero() {
	}

	private static LogHero ME = new LogHero();

	public static LogHero me() {
		return ME;
	}
	
	private static Logger goodsLogger = LoggerFactory.getLogger("hero");
	
	public void log(int pid,int heroCid,int oldCount, int nowCount,LogDsp logDsp) {
		SK_Plus sb = getPlayerInfo(pid);
    	addField(sb, heroCid);
    	addField(sb, oldCount);
    	addField(sb, nowCount);
    	addField(sb, logDsp.getDsp());
    	addField(sb, logDsp.build());
		goodsLogger.info(sb.e());
	}
}
